8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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)
Discussion started by: mohtashims
7 Replies
2. UNIX for Dummies Questions & Answers
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)
Discussion started by: pandeesh
6 Replies
3. Shell Programming and Scripting
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)
Discussion started by: Gavster
6 Replies
4. Shell Programming and Scripting
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)
Discussion started by: ChicagoBlues
5 Replies
5. Shell Programming and Scripting
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)
Discussion started by: neked
1 Replies
6. What is on Your Mind?
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)
Discussion started by: virmin
4 Replies
7. UNIX for Dummies Questions & Answers
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)
Discussion started by: willhunter
3 Replies
8. UNIX for Advanced & Expert Users
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)
Discussion started by: rein
3 Replies