Search Results

Search: Posts Made By: kalak
14,400
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...
909
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,931
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,704
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...
67,379
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 11:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy