I suppose that this is not actually a script question, but I noticed this while working on a bash script homework assignment and I have been impressed with the quality of posts here -- so that is why I posted it here.
I have this text file named textfile:
I do a "grep -n .s textfile"
Why would lines that do not contain ".s" be listed??
After a server reboot for regular mainatanance we face the following situation:
1/ user accounts with ksh can't start the korn shell
2/ korn shell scripts do work however, if executed from bash
3/ normal users with bash can't run ksh
4/ root can run ksh
5/ if I switch the default shell to... (3 Replies)
Hello All,
I have some questions;
1) process1 | process2,
A)now if I kill process2 what happens to process1?
B) if I kill process1 what happens to process2?
2) Why kill -9 is a strong kill? If possible I would like to know what happens internally.
3) What a pipe actually do, in... (3 Replies)
I am not a native English speaker. I wanna improve my English. But I am kind of lazy, so I decide to pratice my English by reading English novel. I'd like read books about magic or superman and so on. How can I get that kind of books from Internet? I'll really appreciate it!! (4 Replies)
Hello,
So I'm utilizing the bash brace expansion feature to checkout multiple folders from cvs with ease, while excluding certain subfolders within. So I do a command like this:
cvs co trunk/{mod_a,mod_b,mod_c} \!trunk/{mod_a,mod_b,mod_c}/web
to checkout modules trunk/mod_a , trunk/mod_b ,... (1 Reply)
Hi,
I am new in this forum and I am glad to be a part of it. I have a problem that has two parts:
1/ extract just the timestamp from a filename: for example, I have a file called 'sales20080226144525.txt' and I want to extract just the '20080226144525' part out of it.
2/ Now, take that... (5 Replies)
This is my first post so hi to you all. I have browsed these forums in the past and what a great community and resource this is! Thanks to all the contributors ... I look forward to being able to give something back.
In the meantime, I have a little conundrum concerning sed. My very simple... (6 Replies)
Hi
I ahve 2 files with below content:
cat file1
FILE3
test1
test2
cat file2
file3
ghg
test1
test2
i want to use file1 as pattern file and find out the missing strings in file2.(i.e ghg in this case regardless of c ase)
I have tried:
grep -i -v -f /path/file1 /path/file2 (6 Replies)
Here is my script
LOGDATE=`date '+%Y-%m-%d %k:%M' | cut -c1-15`
echo $LOGDATE
echo "grep '$LOGDATE' /tmp/logs/vel.log >10min_log"
grep '$LOGDATE' /tmp/logs/vel.log>10min_log
grep '$LOGDATE' /tmp/logs/vel.logHere is the output of the script
-rw-r--r-- 1 wluser wluser 0 May 3... (7 Replies)