Search Results

Search: Posts Made By: AbhishekG
6,771
Posted By AbhishekG
I have got one way to use printf and force the...
I have got one way to use printf and force the size to be of length 10. But still let me know other possible ways
6,771
Posted By AbhishekG
size of number variable in unix (awk)
Hi All,

M writing a shell scripting n making use of awk. I am using a integer variable named size. When printing it's value, it is giving result as 4.34534e+10.

Is there any way to declare...
7,379
Posted By AbhishekG
how to use a command in sed s/match/replacement
hi,

how can i make use of a command in the replacement segment..

cat a | sed '/^[[:digit:]*]\{3\}$/{
s/\(.*\)/REPLACEMENT/g
}'

suppose if I want to use a awk command in the replacement...
9,950
Posted By AbhishekG
xargs: missing quote?
i am facing this problem


>find . -mtime +5 | xargs ls -lrt
xargs: missing quote?: ./off.lst

even if i try ivar i get this error
>find $PWD -mtime +5 | xargs -ivar echo "var"...
36,805
Posted By AbhishekG
hi you can use find command with -mtime flag ...
hi
you can use find command with -mtime flag

like
find . -mtime (-n or n or +n) | xargs cp dirname

-n for files modified in last n days
n for files modified exactly on last nth day
+n fro...
12,116
Posted By AbhishekG
Thanks for the reply.... Also can you...
Thanks for the reply....

Also can you suggest me how to make a variable as global variable in the shell script.

Like if we are running programs like a package, how can I access a variable...
12,116
Posted By AbhishekG
passing of a varibale to subshell
Hi All,

I need some info.

Could you please tell me how to use the variable of a parent shell in the subshell. Also can we modify the variable in the subshell ? If yes, will the modified...
Showing results 1 to 7 of 7

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