How to get the values of multipledot(.) separated fields?
Hello, I have a file which has the following contents : Code: thewall............0000000000200000 kmemfreelater......0000000000000000 kmemgcintvl........0000000000000002...
View ArticleSQUID :- Maybe you have a broken user ID in your
Hi All, I have squid running in our environment as proxy server and sarg is configured to view squid reports from web. Some time what happened, it stopped creating logs and to check the i execute the...
View ArticleDownloading hdfs file to local UNIX through UNIX script
Hi All , I am very new to unix script.I am aware of unix commands but never put together in unix script level.If any one can suggest me technical guidance in the below scenario that will highly...
View ArticleSearch a file for certain strings and add them to the end of certain lines
I have a log file which lists groups and users in the following format Code: GROUP1 user1 user2 user3 GROUP2 user4 user5 user6 GROUP3 user7 user8 I need to change the format to: Code: user1|GROUP1...
View ArticleTo count underscore in filename
Hi All I have a filename like below Code: adsf_ghjt_kop_pol.csv Can you please get me a command for counting the number of underscore in the filename. In the above filename I should get output as 3,...
View ArticleHow to join one file with multiple files in a directory in UNIX?
Dear folks Hello I have a one file called (file1) which the structure looks like this Code: 1 gi|358484521|ref|NW_003764373.1| 1 gi|358484520|ref|NW_003764374.1| 1...
View ArticleI want to scp file from one server to another, both server have different...
i want to scp file from one server to another. both server have different user name and it needs to give password to transfer file.how can we mention password in the script itself so that we need not...
View ArticleIP Domain registrant
Sorry for not beeing absolutely sure if this is the right forum to put my request, but as it deals about fraud, and the physical person behind a domain or IP I just take this one. It comes like this....
View ArticleStudent system BASH script
Hi guys, i'm beginner with Unix, I tried my best, but I Really don't know how to finish it :D. here's my problem : I have to do something like Student system - student's name | subjects | mark...
View ArticleGrep and rename ?
I have a log file from /m/n/o/A.log with 1 line current content: 19518634,SW,windows_x86_64 and an folder from /x/y/z/testit_folder How do you write a shell script to rename test_folder to...
View ArticleAIX break rootvg mirror from system down
Hello, aix 5.2, mirrored rootvg on hdisk0 and hdisk1. hdisk0 is dead. I can boot to cd, into sms, into maintenance mode. I can fsck all the various partitions on hdisk1 (the hd4 hd2 hd3, etc...) all is...
View Articleawk and rename ?
I have a log file from /m/n/o/A.log with 1 line current content: 19518634,SW,windows_x86_64 and an folder from /x/y/z/testit_folder How do you write a shell script to rename test_folder to...
View ArticleExtracting words beginning with 6 and length 10 from all lines of a file
I have a file with below content Code: 1355542134 120000 6123456789 HGiugfah 1753210 6439 64390 6987654321 agfabfoag 973216576 I want to extract all words beginning with 6 and having record length 10.....
View ArticleStdin during rhel 7 bootup (systemd)
Hi All, I had a startup script (rc3.d/S01getinput) which will accept user inputs during the boot up in console. Basically it will prompt for input. It was working fine in RHEL6. Now I have migrated to...
View ArticleHelp needed with egrep
Hello folks, I am having an issue with searching for a pattern using egrep (or grep). For ex, in the below file. I am searching for all files with a particular pattern but I am not able to figure out...
View ArticleDisplay info about users (UID GID processes terminal)
I would like to get an opinion for my solution for this task and get feedback about better approach or mistakes I have made. 1. The problem statement, all variables and given/known data: The task is to...
View ArticleMatch sum of values in each column with the corresponding column value...
Hi All, I have a requirement where I need to find sum of values from column D through O present in a CSV file and check whether the sum of each Individual column matches with the value present for that...
View ArticleRemove top and bottom for each column
Dear All I was wondering if someone could help me in resolving an issue. I have a file like this: Code: column1 column2 2 4 3 5 8 9 0 12 0 0 0 0 9 0 87 0 1 0 1 0 1 0 4...
View ArticleElseif & for condition in AIX
I'm using the below statements in my script Code: if [$selection -ge 0] && [$selection -le 7] then sqlplus sysadm/abcdefgh12@${dbarr[idx]} @/u1/scripts/ResetPswd.sql elif [$selection == 8]...
View Article