Hi All,
I have a log file which is storing a backup time stamps information in it. (pasted below)
20081006210008 0 20081006211910
20081006222824 0 20081006224758
20081007210049 0 ... (2 Replies)
How do I match second word and then print that line to output
For eg: My file has following text and I want to check if second word is n then I want to print entire line .
xytxti8naclip y
xytxt32bpsimple y
xytxt32bpna n
xytxti16nae y
xysmps32bpp031_bst n... (7 Replies)
I need to grep the word "hello" in each and every file. This word will be placed either at the end of the file or before the end of the file.
Ex:
file1: file2:
afdsaf dsfalk
fdsa weruoi
sdaf erwqiuo
fsdaf ... (5 Replies)
cat shell_script.ksh
x=$A
y=$B
export x
export y
echo $x
echo $y
when i am running this with a command
ksh shell_script.ksh -A 10 -B 20
its not showing anything ....
could you let me know how i can use key word type paramter (2 Replies)
Hi -
I am trying to do a simple config file with known variable names in it, e.g.:
contents of config file a.conf: -a
-b $work
-c $host
simplified contents of bash script file: work='trunk'
host='alaska'
opts=$(tr '\n' ' ' < a.conf)
opts="$opts $*"
mycommand $opts arg1 arg2
The... (3 Replies)
I want to grep some information out of the dmidecode but when I type
dmidecode | grep Memory
I get several instances of the word. Is there a way I can just choose which instance I want to display? (8 Replies)
Hi,
How to pass parameter to run folloing script?
#parameters are div, dept, style
U run_convert_pdm.ksh Mens 44 7542
U run_convert_pdm.ksh "Mens Knit" 44 7541
The first command works fine but the second needs to have two words together , it does not work even if
I have used double... (15 Replies)
Hello Everyone!
I have updated the first post so that my intentions are easier to understand, and also attached sample files (post #18).
I have over 500 text files in a directory. Over 1 GB of data. The data in those files is organised in lines:
My intention is to return one line per... (23 Replies)
Hi expert, Need help in shell script.
a.txt file output is below
i would like to grep 3 line and 1st column value which is admin\22226 only and not full line. i only know admin word as 22226 can come anything with admin\ in file.
also after fetching it i would like to use this... (1 Reply)