Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: kalak
13,377
Posted By alister
You need to add a command name between the sh...
You need to add a command name between the sh command string and the arguments that find will pass to the shell. If the command name is absent, the first pathname from find will be assigned to $0...
851
Posted By zedex
Useful Link : Learn regular expression
Hi All,

recently i came across this site txt2re (http://txt2re.com/index-perl.php3) site is good for learning how to write regular expression.

P.S : Mods I was not sure where to post this...
1,800
Posted By Corona688
No need to kludge with awk and temporary files,...
No need to kludge with awk and temporary files, there's a built-in utility to do this job: xargs.

xargs -n 1 ./myscript < listfile will run ./myscript firstline then ./myscript secondline, etc,...
36,357
Posted By Scrutinizer
Ow that is right I tested it in ksh93. Bash can't...
Ow that is right I tested it in ksh93. Bash can't deal with that.

Alternatively:
res1=$(date +%s.%N)
sleep 1
res2=$(date +%s.%N)
echo "Start time: $res1"
echo "Stop time: $res2"
echo...
66,338
Posted By Perderabo
Re: Pass variable to sed?
Take the variables out of the single quotes...
sed 's/1111/'${A}'/g;s/2222/'${B}'/g;s/3333/'${C}'/g' file > anotherfile

At least that should always work. For the example you posted, it looks...
Showing results 1 to 5 of 5

 

Featured Tech Videos

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