Search Results

Search: Posts Made By: Ramesh_srk
4,373
Posted By Ramesh_srk
use, rm -f sample2.txt*
use,

rm -f sample2.txt*
1,588
Posted By Ramesh_srk
It used to mingle 2 lines in a file to single one.
It used to mingle 2 lines in a file to single one.
1,588
Posted By Ramesh_srk
Try this, grep "NAME" <Filename> | cut -d':'...
Try this,

grep "NAME" <Filename> | cut -d':' -f2 | paste - -
33,217
Posted By Ramesh_srk
Try this, ls -p <Path> | grep -v...
Try this,

ls -p <Path> | grep -v "\/"
2,966
Posted By Ramesh_srk
Try this, awk '! /\:[ ]*$/ { print }'...
Try this,

awk '! /\:[ ]*$/ { print }' <Filename>

And redirect the final output to another file.
3,201
Posted By Ramesh_srk
I have checked in my server and its works fine!!
I have checked in my server and its works fine!!
3,201
Posted By Ramesh_srk
Try this, df -k | awk '$5 >= "70%" { printf...
Try this,

df -k | awk '$5 >= "70%" { printf "HI "; printf; printf " BYE"; printf "\n"; }'
28,149
Posted By Ramesh_srk
Try this, cat <Filename> | sed 's/\~\!/\-/g'...
Try this,

cat <Filename> | sed 's/\~\!/\-/g' | awk -F'-' 'BEGIN{t=500} { printf t; for(i=2; i<=NF; i++) printf "~\!"$i; printf "\n"; t+=1; }'

-srk
28,149
Posted By Ramesh_srk
Try this, cat <Filename> | sed 's/\~\!/\-/g'...
Try this,

cat <Filename> | sed 's/\~\!/\-/g' | awk -F'-' 'BEGIN{t=500} {print t"~\!"$2"~\!"$3"~\!"$4; t+=1}'
27,328
Posted By Ramesh_srk
Check whether this will return only 1 file or...
Check whether this will return only 1 file or more than 1 files
ls -1 /abcd/xyz*
27,328
Posted By Ramesh_srk
Try like this: if [ `ls -1 /abcd/xyz*` -nt...
Try like this: if [ `ls -1 /abcd/xyz*` -nt /abcd/test.txt ]
then
echo "file found"
else
echo "file not found"
fi
3,270
Posted By Ramesh_srk
Try this, sed 's/^....//g' <Filename>
Try this,

sed 's/^....//g' <Filename>
1,731
Posted By Ramesh_srk
Try this, nawk -F',' '$3 == "\"N\"" { print...
Try this,

nawk -F',' '$3 == "\"N\"" { print }' <Filename>
4,198
Posted By Ramesh_srk
Try this, cat <Filename> | xargs -E '&' |...
Try this,

cat <Filename> | xargs -E '&' | sed 's/& //g'
16,191
Posted By Ramesh_srk
Try this in perl, qx/printf $arr_Ent_NameId |...
Try this in perl,
qx/printf $arr_Ent_NameId | sed 's/ /,/g'/;
66,700
Posted By Ramesh_srk
Yes, we can find the list of hard link files...
Yes, we can find the list of hard link files using below command,

find . -links +1 -print

The -links +1 --> Will find all files that have MORE than 1 link. Hardlinked files have a link count of...
2,600
Posted By Ramesh_srk
how to remove the files along with its link files
How to remove the files along with its link files either hardlink or softlink?
54,545
Posted By Ramesh_srk
I hope the problem in filename, plz change the...
I hope the problem in filename, plz change the file below line as follows

sqlplus -s username/passwd@$dbname >> outputfile <<!
1,661
Posted By Ramesh_srk
Try this, grep "XXX AAAA ZZZZ.*BBBB LLLL"...
Try this,

grep "XXX AAAA ZZZZ.*BBBB LLLL" <Filename>
54,545
Posted By Ramesh_srk
Try this, #!/bin/bash ...
Try this,

#!/bin/bash

exec<InputFilename
while read line
do
$ORACLE_HOME/bin/sqlplus -s username/Password <<!
select * from Tablename where Fieldname='$line'
/
!
done
Showing results 1 to 20 of 20

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