10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I need more explination on it, how it works
abcd="$(echo "$abcd" | sed 's/ //g')" >> ${LOGFILE} 2>&1
can any one suggest me on this?
Rgds,
LKR (1 Reply)
Discussion started by: lakshmanraok
1 Replies
2. Shell Programming and Scripting
Hi,
In the script, it's declared as like that. Please explain this one.
pk.flags.summaryGrep=Timing
Thanks (4 Replies)
Discussion started by: bmk
4 Replies
3. UNIX for Dummies Questions & Answers
Could anyone please advise what the in the following if statement means?
if ; then
Thank you. (2 Replies)
Discussion started by: jimbojames
2 Replies
4. UNIX for Dummies Questions & Answers
Hi all
I am new to egrep can someone please explain me what does the below Statement do
egrep -v "^missing sales|^\
Thanks in advance
Sri
Please use next time code tags for your code and data (4 Replies)
Discussion started by: Sri3001
4 Replies
5. UNIX for Dummies Questions & Answers
Its great someone provided this script that strips out a filename and extension but can someone explain how each line works?
file1='Jane Mid Doe.txt'
newfile='Jane.txt'
1) ext=${file1##*.}
2) filename=${file%%.???}
3) set -- $filename
4) newfile="1.$extension" (1 Reply)
Discussion started by: Lillyt
1 Replies
6. Shell Programming and Scripting
Hi
All,
Can anybody explain what this script is doing?
#!/bin/sh
who | cut -d " " -f1 | sort -u > userlist1
while true ; do
sleep 60
who | cut -d" " -f1 | sort -u >userlist2
for username in `cat userlist1` ; do
if ! grep "^$username$" userlist2 > /dev/null ; then
echo... (0 Replies)
Discussion started by: vishalpatel03
0 Replies
7. UNIX and Linux Applications
Hi am having a c pgm. It has the include files (unistd.h,sys/types.h,win.h,scr.h,curses.h,stdarg.h and color.h). I don't know the purpose of these include files. will u plz explain me. (1 Reply)
Discussion started by: Mari.kb
1 Replies
8. Shell Programming and Scripting
how does below tr command replace nonletters with newlines?
I think I understand tr -cs '\n' part.. but what is
A-Za-z\' <--- what is this??
tr -cs A-Za-z\' '\n' |
-c --complement
-s, --squeeze-repeats
replace each input sequence of a repeated character that is... (1 Reply)
Discussion started by: convenientstore
1 Replies
9. Shell Programming and Scripting
how does below tr command replace nonletters with newlines?
I think I understand tr -cs '\n' part.. but what is
A-Za-z\' <--- what is this??
tr -cs A-Za-z\' '\n' |
-c --complement
-s, --squeeze-repeats
replace each input sequence of a repeated character that is... (0 Replies)
Discussion started by: convenientstore
0 Replies
10. Shell Programming and Scripting
Hi,
Could anyone please explain why we have arr=1 - what does this statement do?
awk -F\; 'FNR==NR{arr=1;next};$3 in arr' core.txt gmrd.txt
Any help appreciated (2 Replies)
Discussion started by: penfold
2 Replies