Search Results

Search: Posts Made By: ketanraut
1,305
Posted By RudiC
awk -F, ...
awk -F, # set input field separator to ","
-vOFS="|" # set output field separator to "|"
'NR == FNR ...
1,305
Posted By RudiC
As you deploy awk anyhow several times in your...
As you deploy awk anyhow several times in your script, a single pass awk script may come in handy? Your usage / processing of spaces within or at end-of line doesn't seem to be consistent, so some...
2,922
Posted By Scrutinizer
Still not sure what you require, maybe this will...
Still not sure what you require, maybe this will give you some ideas:
awk -v U=96 -v L=91 -v n=4 'BEGIN{for(i=1; i<=n; i++) printf "HDTV%04d|Subcenre B| Sa_WSDSD |bocvdf| caddfdfefeca%04d\n", U++,...
1,539
Posted By Akshay Hegde
Try : $ cat file Customer : Apr 24 16:31...
Try :

$ cat file
Customer : Apr 24 16:31 Customer_Name_111121.txt
Apr 24 16:32 Customer_Name _111121. txt
Apr 24 16:34 Customer_Name_111112. txt
Apr 24 16:35 Customer_Name _222223. txt
Apr 24...
5,856
Posted By Chubler_XL
Perhaps something like this will get you started:...
Perhaps something like this will get you started:

T=0
while IFS='|' read -r line f_path p_path
do
if [ -n "$f_path" ]
then
file_name[${#file_name[@]}]=$line
...
9,042
Posted By chacko193
Here you seemed to have missed the second single...
Here you seemed to have missed the second single quote for find. Its not closed.

You can also try it this way:

ssh -q -o ControlPath=/home/kraut/.ssh/cm_socket/%r@%h:%p_13929 uname@ip 'ls -l...
2,612
Posted By Akshay Hegde
$ cat file Tue Jun 18 05:00:02 EEST 2013 |...
$ cat file
Tue Jun 18 05:00:02 EEST 2013 | file_check.sh| Message:script has files to process.
Thu Jun 20 05:00:02 EEST 2013 | file_check.sh| Message:script has files to process.
Fri Jun 21...
6,177
Posted By pravin27
Hi Ketan, 1) Use code tag while posting your...
Hi Ketan,

1) Use code tag while posting your code.
2) You can check whether variable is zero length or not.
if [ -n "$ERROR_CODE" ] ; then
if [ "$ERROR_CODE" -eq 100021 ] ; then...
27,748
Posted By quirkasaurus
that's what i'm telling you, Ikea.... the...
that's what i'm telling you, Ikea....

the .profile is NOT SOURCED IN DURING CRON.

you must explicitly do so within a shell, within your cron command.

try putting everything into another...
Showing results 1 to 9 of 9

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