8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I need to find the line by using grep command with the two occurence of word in the same line. I tried the below example it prints the word choice.
cat nohup.out
Dictionary utl is completed.
file is completed.
Dictionary file is completed.
grep 'Dictionary\|file'... (0 Replies)
Discussion started by: arun888
0 Replies
2. Shell Programming and Scripting
i have this line of code that looks for the same file if it is currently running and returns the count.
`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh | grep -v grep | wc -l`
basically it is assigned to a variable
ISRUNNING=`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh |... (6 Replies)
Discussion started by: wtolentino
6 Replies
3. Red Hat
How to create a file with specific size in RHEL6 (1 Reply)
Discussion started by: Sashi Kanth A
1 Replies
4. UNIX for Dummies Questions & Answers
Hi ,
Struck with one basic question.
Iam expecting word count of 4 where "wc" is showing as 5 .
# echo "abcd" | wc
1 1 5
# echo abcd | wc
1 1 5 (5 Replies)
Discussion started by: penchal_boddu
5 Replies
5. UNIX for Advanced & Expert Users
in my parition i hav parition like this
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 24G 22G 756M 97% /
/dev/sda5 248G 1.2G 234G 1% /else
/dev/sda1 965M 24M 892M 3% /boot
tmpfs 7.0G 0 7.0G 0%... (1 Reply)
Discussion started by: ponmuthu
1 Replies
6. Shell Programming and Scripting
Hi
I need to grep a particular world like and redirect into a temporary file .But while iam grepping some unwanted data are aslo coming like .ex In a FILE all these TABLENAMES are present .
module_table1,module_table2, module_table3,module_table5, module_table1_temp , module_table2_temp... (9 Replies)
Discussion started by: mani_isha
9 Replies
7. Shell Programming and Scripting
shudnt this command :
grep test
give all the lines which do not hv 'C'. ^ wrks as negating character inside square brackets right ???
bt in my case grep is printin all the line in the file
also wht does
grep c+ test & grep c? test
shud do ??? (4 Replies)
Discussion started by: evergreen_cool
4 Replies
8. Shell Programming and Scripting
Hello
i am new shell scripting.
I have a file like this,
$ cat myfile
;/abc/abc.cpp@@/main/1;xyz
;/abc/abc.cpp@@/main/2;usr2
;/abc/abc.cpp@@/main/1;abc
;/abc/abc.cpp@@/main/2;usr2
;/abc/abc.cpp@@/main/1;usr1
when i grep the file.
$ grep "abc" myfile... (8 Replies)
Discussion started by: tsaravanan
8 Replies