9 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi,
I am working on a file copier utility where I have written the copy commands to a batch file e.g. file_copier.bat which i pass to xargs command as follows.
cat file_copier.bat | xargs -n 1 -P 40
I also want to record the copy command status of each file/command in the form "command... (1 Reply)
Discussion started by: ankur singh
1 Replies
2. Shell Programming and Scripting
Hi all,
I think so I’m getting the result is wrong, while using following awk commend,
colval=$(awk 'FNR>1 && NR==FNR{a=$4;next;} FNR>1 {a+=$4; print $2"\t"a/3}'
filename_f.tsv filename_f2.tsv filename_f3.tsv)
echo $colval >> Result.tsv
it’s doing the condition 2 times, first result... (5 Replies)
Discussion started by: Shenbaga.d
5 Replies
3. UNIX for Advanced & Expert Users
hello guys!! need 1 favour from u all..
Can u jst tell me the answers for these ques??
1. ls - l _____ : command to return all files that end with single digit and those with TXT extension
2. ls -l report* _______ : command to return all files that start with the word RPT except those with LOG... (1 Reply)
Discussion started by: Gan_7
1 Replies
4. Shell Programming and Scripting
HI
I'm gaving trouble to do that script in awk. I would like to compute the mean of two colomns from two diffent files just like that
file 1
4 1
5 2
6 3
file 2
1 1
2 2
3 3 (3 Replies)
Discussion started by: yassinegoth
3 Replies
5. Shell Programming and Scripting
Hi,
I am new to shell scripting.
please help me to find out the solution.
I need a script where we need to read the text file(consists of all file names) and get the file names one by one
and append the date suffix for each file name as 'yyyymmdd' .
Then search each file if exists... (1 Reply)
Discussion started by: Lucky123
1 Replies
6. Shell Programming and Scripting
Moderator, please, delete this topic (1 Reply)
Discussion started by: optik77
1 Replies
7. Shell Programming and Scripting
In the Text file ex sample.txt
cat sample.txt
morning
evening
night
bye
__________________
i want add text "Good " i front of all the words .
u have to use one vi command only
or
u can write script also
o/p should be like this
cat sample.txt
Good morning
Good evening (7 Replies)
Discussion started by: premnathk
7 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
I need few information as follows:
1. I am acessing one the machine uismg putty at port no 12023 using telnet service.
My question is i heard by defalult the port for telnet is 23. Why it is 12023 in my case. Also where can i change it.
2. i install new debian server. And then... (1 Reply)
Discussion started by: gauri
1 Replies
9. Shell Programming and Scripting
Hello,
I want to compare two files. All records in file 2 that are not in file 1 should be output to file 3.
For example:
file 1
123
1234
123456
file 2
123
2345
23456
file 3 should have
2345
23456
I have looked at diff, bdiff, cmp, comm, diff3 without any luck! (2 Replies)
Discussion started by: blt123
2 Replies