10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Using the awk below I am able to combine all the matching dates in $1, but I can not seem to remove the non-matching from the file. Thank you :).
20161109104500.0+0000,a,4117... (3 Replies)
Discussion started by: cmccabe
2. UNIX for Dummies Questions & Answers
grep -c 'avihai' 1.log
will give me count of 'avihai' in log
I want to have a list of files in the folder that show file name with count side by side.
Please advice (2 Replies)
Discussion started by: avihaimar
3. Shell Programming and Scripting
I need a unix command which generates the list of files that dont match the wild card pattern in the current directory
say for example
I have files like
I need the list of files which dont match... (4 Replies)
Discussion started by: lijjumathew
4. UNIX for Dummies Questions & Answers
I am trying to write a script that list down all the files that do not match the pattern
My pattern will be like this "*.jpg|*.xml|*.sql". This pattern will be stored in a file. The script need to read this pattern from the file and delete the files that does not match this pattern. It... (7 Replies)
Discussion started by: meenavin
5. Shell Programming and Scripting
I want to remove the first row in a list of files and am trying to do via the following.
I've tried various quotes to redirect the modifed file to a newly named version of itself but no joy.
Can you help?
> for i in 'ls A*'; do sed '1d' $i > $i"_complete"; done
bash: $i"_complete":... (4 Replies)
Discussion started by: ksexton
6. UNIX for Dummies Questions & Answers
done some homework on this--
after i remove up to and including the ) i want to take newfile.txt and use that list to remove the files from a file in my the directory pwd
i have a input.txt file
i want to remove the characters in the... (1 Reply)
Discussion started by: plener
7. Shell Programming and Scripting
I have two files and need to compare the two files and to remove the matching lines from both the files (4 Replies)
Discussion started by: shellscripter
8. Shell Programming and Scripting
HP-UX gxxxxxxxc B.11.23 U ia64 3717505098 unlimited-user license
I have a file with below pipe separated field values:
The third field has values like... (6 Replies)
Discussion started by: Nanu_Manju
9. UNIX for Advanced & Expert Users
I have a problem. One of the directories in /var, on one of my servers, has filled up with loads of files. I have tried to list the directory to see what is in it, but the 'ls' command just hangs. Same thing happens when I try to use 'rm' to remove files from that directory.
I can see what... (2 Replies)
Discussion started by: m_smith
10. UNIX for Dummies Questions & Answers
I have a directory which has 614,000 files.
When attempting to do an ls -ralt in the directory an error too many arguments is shown.
1. I would like to see what files and their stats in the directory
2. I would like to delete certain files of a certain age (3 Replies)
Discussion started by: dinplant