Search Results

Search: Posts Made By: sglinux
23,995
Posted By sglinux
simple fileread and print it to screen ...
simple fileread and print it to screen

FILENAME=$1
IFS="
"
for LINE in $FILENAME; do
echo "$LINE"
done
3,193
Posted By sglinux
find . -type f -print | grep file.txt find * ...
find . -type f -print | grep file.txt
find * -type f -print | grep file.txt
find / -type f -print | grep file.txt
7,863
Posted By sglinux
use single quote around the variable for...
use single quote around the variable
for example '$record' where record is a variable has some value assigned to it.
4,917
Posted By sglinux
tar cvf - . | gzip -c > filename.tgz . if...
tar cvf - . | gzip -c > filename.tgz

. if your are in the same directory where you want to tar from.....

v option is verbose to list all the files.....
23,445
Posted By sglinux
find
How about trying this one....


find . -type f -name *.txt -print

Let me know does it work for you or not.....
4,595
Posted By sglinux
grep
This one will work, however it prints to new line
sed 's/ /\n/g' abcd.txt | sed 's/^hai/power hai/g'
Showing results 1 to 6 of 6

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