Please re-post the requirement with code-tags. Just like you did for the command you are using.
Regarding the requirement, its not very clear what you are looking for.
Where does the texts "Customer", "Brain-UCG" coming from? Are they predefined?
below format looks more generic to me. but that's purely upto your decision and requirement.
I see you just need the last four columns of ls -l output ?
Thanks for help. I Have tried with suggested changes but still have not able to get the formatted output what I want.
From log files I graped file name(customer, User, Brain-UCG...) and i want the list of files that we received on particular day e.g"Apr 24" with time stamp(all file name must be display one below another)
Can't help if you don't give us the required info, be very specific: Where and how do you get the filenames from, and how do you transfer them to awk; how do you pass the desired date to awk?
This requirement is a part of script that I hv made. Below id detail description. 1.Date “24 Apr” is user input date for which we need to search in multiple log files and return the name of file in which error is trace on this particular date and if found then it return file name in $ FILE_NM_DISP 2. Now for file name in $ FILE_NM_DISP I have to get all the file located at particular directory I received at that day(24 Apr) and $FILE_PATH gives path where files are placed. 3.All above is achieved and only thing is to display this information in formatted manner... 4.$FILE_LIST only used for formating out put and print list of files.i can chage it any manner to get formatted output. Code I am using for :- Output I am getting :- Out put need to display :-
Please suggest some good solution for this
Hello all, I've got a script that collects data on file systems and prints out specific data about each. I've formatted headers w/ printf like so.
printf "\033
and I had the content of the varibles printed out beneath those columns like so:
printf... (5 Replies)
Hi ,
I have the below ouput,
=====gopi=====
assasassaa
adsadsadsdsada
asdsadsadasdsa
sadasdsadsd
=====kannan===
asdasdasd
sadasddsaasd
adasdd
=====hbk===
asasasssa
....
..
I want the output like as below, not able paste here correctly. (2 Replies)
Hi All,
I need read the file and out put format as below using ksh, I wrote below script its keep on repeating first line in the file.
may i know the best way to get the below out put while incrementing line in the file.
cat b.txt |awk '{print $0}' |while read line
do
aa=`cat $line |head -1... (7 Replies)
Hi
consider this as the first line
00010015 MORGAN STANLEY & CO INCORPORATED N 110 INVESTAR 1 0001OT NJ 201-830-5055 01-Jan-1974 00:00:00 1 01-May-2008 00:00:00 05-Jun-2008 13:34:18 0001 - From SMSRun1_GIDQA02
Consider this as the second line
00010015 MORGAN STANLEY... (3 Replies)
I currently have an expect script that issues the 'mail' command and sends an 'x' when it receives the & prompt from mail to quit.
The expect script is able to do stty rows 100 columns 200 < $spawn_out(slave,name) to set up the number of columns and rows.
I would like to get rid of the expect... (0 Replies)
Hi
I have a file which has ascii , binary, binary decimal coded,decimal & hexadecimal data with lot of special characters (like öƒ.ƒ.„ÝÝ¡Š·œƒ.„ÝÝ¡Š· ) in it. I want to standardize the file into ASCII format & later use that as source .
Can any one suggest a way a logic to convert such... (5 Replies)
Is there a way to combine two lines onto a single line...append the following line onto the previous line?
I have the following file that contains some blank lines and some lines I would like to append to the previous line...
current file:
checking dsk c19t2d6
checking dsk c19t2d7
... (2 Replies)
My issue is the following:
I have several text files, let's say 10 of them. Each one has three columns separated by a tab: Date, Time and Value. What I want to do next is to have only one text file containing the information: Date, Time, Value1, Value2, Value3, ... , Value10, where Value1... (2 Replies)