Search Results

Search: Posts Made By: guptam
3,537
Posted By guptam
pardon me for inconvinience... actually my...
pardon me for inconvinience...

actually my operating system got crashed today...so i am unable to try myself...

hope i will soon get my system right and then i will share some some relevant...
3,537
Posted By guptam
thanks CarloM but i still have some doubts... ...
thanks CarloM but i still have some doubts...

1.) untill current record number is exactly divisible by n ,the filename_1 will be appended ????
This is an implicit behaviour of awk or what part...
3,537
Posted By guptam
but how this awk command is working.. plz help...
but how this awk command is working..
plz help me out.

thnx.
3,537
Posted By guptam
Split a file using awk command.
awk 'FNR == 1 { c = 1 } { print > (f c) } !FNR%n { close(f c); ++c }' n=$files_per_stream f=$input_path/filename_ $input_file


$input_file with some records are splitted into files named...
2,560
Posted By guptam
suppose like i have 26 files named...
suppose like i have 26 files named a.txt,b.txt,c.txt,....y.txt,z.txt
i have to move them to a directory /dir1/dir2/dir3
but by mistake dir3 does not exists
i executed
ls -lrt | awk '$7==12{print...
2,560
Posted By guptam
thanks for ur reply i got it only the last...
thanks for ur reply
i got it
only the last file is moved to a $dir(a file being created)......

i hv another doubt
suppose my $dir is like /abc/def/
should i provide "/abc/def/" or...
2,560
Posted By guptam
find / .... will search in each directory????
find / ....
will search in each directory????
2,560
Posted By guptam
need help with xargs command..
ls -lrt | awk '$7==12{print $9}' | xargs -i mv {} $dir
i executed this command but $dir does not exists.......
and the files hv been moved but i dont know where .....
plz help(ASAP)

thanks in...
1,010
Posted By guptam
thanks a lot... ---------- Post updated at...
thanks a lot...

---------- Post updated at 06:35 PM ---------- Previous update was at 06:22 PM ----------

how to get my final output.....
addition of 1st and 4th col for same col2(yyyymm)...
1,010
Posted By guptam
thanks.. BUT if there are three...
thanks..

BUT

if there are three distinct status .....
then i want three different files containing rows of respective status.

to make it more clear i hv edited my output file in my...
1,010
Posted By guptam
difficulty in formatting a file.
a file containing following data (part of it)....

1907594 201012 31 11
5837737 201012 41 18
257402.88 201101 31 11
7500 201101 33 1
115618.5 201101 41 11
556330 201102 31 12
481783.5 201102...
1,015
Posted By guptam
thankx a lot.:) that means there is no...
thankx a lot.:)

that means there is no difference between following commands...
awk '{print (/^\// ? $1 : $1) }' myfile
&
awk '{print $1}' myfile
1,015
Posted By guptam
help me out with awk command.
awk '{print (/^\// ? $1 : ${16}) }' myfile

plz explain.
thanx.
855
Posted By guptam
Thanks a lot........ but plz tell why -T is...
Thanks a lot........
but plz tell why -T is used ..........why we require temporary files or is it optional.
855
Posted By guptam
please help me with this
sort -T /fns/$REGION_ID/r/spool -y -k 1.21d,1.25d $data/file/SH0000DEP -o $data/file/SH0000DEP_sort 2>$sysout/shsplitdep.log

Please read the forum rules (https://www.unix.com/misc.php?do=cfrules). ...
Showing results 1 to 15 of 15

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