Search Results

Search: Posts Made By: IND123
1,452
Posted By vidyadhar85
purpose willbe, If you want to do some...
purpose willbe, If you want to do some calculation on same variable which is used by parent shell and don't want to replace the value of parent shell variable.
3,522
Posted By xoops
head -c1000 inputfile > outputfile
head -c1000 inputfile > outputfile
9,853
Posted By cero
When you open a file with vi a hidden swap-file...
When you open a file with vi a hidden swap-file is created (to recover your vi-session in case vi crashes). That file is deleted when you exit vi in a normal way. That deletion (and before that the...
9,853
Posted By ctsgnb
man stat stat yourfolder
man stat

stat yourfolder
2,891
Posted By dr.house
echo "abc_ss_222_54.txt" | awk -F '.' '{print...
echo "abc_ss_222_54.txt" | awk -F '.' '{print $NF}'

ls -1 /tmp/vinay/act/files | grep -E 'fdr_c_us_cons_*.[txt|done]'
8,847
Posted By Franklin52
From an excerption of man set: For the...
From an excerption of man set:



For the sed command you can have a read of this:

Sed - An Introduction and Tutorial (http://www.grymoire.com/Unix/Sed.html#uh-4)
8,847
Posted By Franklin52
You can do something like: #!/bin/bash ...
You can do something like:
#!/bin/bash

echo "Enter the file name to extract the timestamp"
read fname

set `echo "$fname"| sed 's/.*_\(.*\)_\(.*\)\..*/\1 \2/'`
echo $1
echo $2
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 09:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy