Search Results

Search: Posts Made By: posix
23,114
Posted By posix
The avobe explanation is correct, for delimeter...
The avobe explanation is correct, for delimeter in awk use -F and use the value of "nth" filed. For runtime variable assing that variable also. using -v option.
awk -vvar=5 -F" " 'NR==10 {print...
35,024
Posted By posix
Check this one echo 9/8/2013 | awk -F/ '{printf...
Check this one
echo 9/8/2013 | awk -F/ '{printf "%s%02s%02s\n", $3, $2, $1}'
1,855
Posted By posix
Storing values in an array is bad idea , better...
Storing values in an array is bad idea , better to do some operation with that

for var in ` grep -n pattern file_name | cut -f 1 -d ":" `; do
echo "it has line number:$var" #do your operations...
984
Posted By posix
add a variable for count '5' for var in...
add a variable for count '5'

for var in $cont
do
echo $var
num=`expr $num + 1`
if [ $num -eq 5 ];then
sleep 2
num=0
fi
done
1,275
Posted By posix
Use backquote " ` " rather single quote " ' " ...
Use backquote " ` " rather single quote " ' "
for i in 1 2 3 4 5
do
y=`expr $i + 1`
echo $y
done
5,515
Posted By posix
Hey try with this echo...
Hey try with this

echo /Users/imac1/Music/iTunes/iTunes 20Media/Music/The%20Rolling%20Stones/Forty%20Licks%20%5BDisc%202%5D/2-13%20Keys%20To%20Your%20Love.mp3 | sed 's/%[0-9]*/_/g'
5,848
Posted By posix
Could you please give output of jhead , also what...
Could you please give output of jhead , also what pattern you want to format from the output??:confused:

just make use this type code may helpful.:D
cat jpeg.sh
#!/bin/sh
for input in `ls -1...
46,274
Posted By posix
Try awk 'BEGIN{FS=OFS=","}{print...
Try
awk 'BEGIN{FS=OFS=","}{print $1,$2,$3*2.2,$4 }' file.txt
1,231
Posted By posix
Try this with back quotes ( ` ` )in the command...
Try this with back quotes ( ` ` )in the command line argument
$date +"%d/%m/%Y"
08/10/2010
24,330
Posted By posix
Hi it is something ${parameter:-val} if...
Hi it is something
${parameter:-val}
if parameter is not set then use the value of val as a default . Here it is Null.
20,458
Posted By posix
with the help of cut and paste you can get the...
with the help of cut and paste you can get the result
$cut -f3 file7.txt >temp1.txt
$cut -f3 file8.txt >temp2.txt
$paste temp1.txt temp2.txt >file.txt
3,294
Posted By posix
# BUNDLE=/home/bob/flx/user.bun #basename...
# BUNDLE=/home/bob/flx/user.bun
#basename $BUNDLE
1,951
Posted By posix
Put that startup.sh file in .bashrc file. ...
Put that startup.sh file in .bashrc file.
which is in your home directory.
Showing results 1 to 13 of 13

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