That post doesn't help. Show us what you did and what failed, so we can hint you to a working script. Use code tags!
I agree with RudiC that we are just guessing at what the problem is; but given the context, I would assume that Anamica is trying to use the command line:
and hasn't figured out that the redirection at the end of the line (> file) wipes out the contents of file before cut opens it. If this guess is correct, the fix is to change this pipeline to something like:
Hello All,
I am working on korn shell script.i have 2 questions;
1) I have a file and i am able to capture the arrival time.
the arrival time is capturing as 11:30
ls -ltr aaa.bbb.332121312.*.* | awk -F" " '{print $8}'
11:30
my desired output is 113000
can anyone please suggest me... (2 Replies)
Hi,
I have a file say abc. I get the timestamp in following way:
ls -ltr abc | awk -F" " '{print $6,$7,$8}'
Mar 8 10:23
I need to get the timestamp as :
03-08-2007 10:23:00
Thanks
Sumeet (1 Reply)
Hi everybody,
I just need desired ouput from text file which should have folowing format;
"2007-06-25 00:03:32.926+05:30",12354369,"Load","Completed","Rs.-5,556.00",9452217714
"2007-06-25 00:06:57.357+05:30",12354371,"Load","Completed","Rs.-56.00",9415766266
"2007-06-25... (1 Reply)
Hello Guys,
I am working on a script and using the below code to fetch the list of all repositories
CHDIR='/mnt/scm/subversion/'
repolist()
{
cd ${CHDIR}
Repo=`ls|cut -d " " -f1`
echo $Repo
}
Output of the above code is
BSB CIB COB DCI DIB DSB ESB-P ESB-TOOLS FareVerify GCACHE GWY... (15 Replies)
Hi
I have the following file in the unix named emp.
ID,NAME,SAL,DEPT
101,aaa,2000,10
102,bbb,3000,20
103,ccc,4000,30
104,ddd,5000,40
105,aaa,2000,50
106,bbb,3000,60
107,ccc,4000,70
108,ddd,5000,10
109,aaa,2000,80
I need to save first 3 columns(ID, NAME, SAL) in another file with... (2 Replies)
I need to get the current year for the files that has been created today.
Ex-
when i list in unix console it shows
ls -l abc.txt
-rw-rw-r-- 1 user1 user1 33 May 2 08:58 abc.txt
but i need to get as May 2 2013 , i dont need 08:58 is there any command to list it out in that... (7 Replies)
Hi! How we are?
I have an A4 PDF in my server, and i must send it to phisically printer.
I use the comand:
lpr -P printername -o media=A4 archive.pdf
And the printer prints it in letter format, i don't know why.
¿Have ideas or solution?
Thanks, my best regards. (6 Replies)
Hi,
I had generated a report in my tool as followsoutput.txt
43.35
9
i needed the script to generate a new file like below
i want to append the text to each of these lines of my filenewoutputfile.txt should be
Total Amount : 43.35
Record Count:9
Regards,
Vasa Saikumar.
... (2 Replies)
I have a result like this
root@server # grep -rl maldet /etc/cron*
/etc/cron.d/maldet_daily
/etc/cron.d/malcron
/etc/cron.d/malcrondaily
/etc/cron.d/malcronweekly
What I need is, I need an if/else condition such that, if there is any output other than /etc/cron.d/maldet_daily in the... (8 Replies)
Discussion started by: anil510
8 Replies
LEARN ABOUT MINIX
ascii
ASCII(7) Miscellaneous Information Manual ASCII(7)NAME
ascii - the ASCII character set.
DESCRIPTION
The ASCII character set is as follows:
|000 nul|001 soh|002 stx|003 etx|004 eot|005 enq|006 ack|007 bel|
|010 bs |011 ht |012 nl |013 vt |014 np |015 cr |016 so |017 si |
|020 dle|021 dc1|022 dc2|023 dc3|024 dc4|025 nak|026 syn|027 etb|
|030 can|031 em |032 sub|033 esc|034 fs |035 gs |036 rs |037 us |
|040 sp |041 ! |042 " |043 # |044 $ |045 % |046 & |047 ' |
|050 ( |051 ) |052 * |053 + |054 , |055 - |056 . |057 / |
|060 0 |061 1 |062 2 |063 3 |064 4 |065 5 |066 6 |067 7 |
|070 8 |071 9 |072 : |073 ; |074 < |075 = |076 > |077 ? |
|100 @ |101 A |102 B |103 C |104 D |105 E |106 F |107 G |
|110 H |111 I |112 J |113 K |114 L |115 M |116 N |117 O |
|120 P |121 Q |122 R |123 S |124 T |125 U |126 V |127 W |
|130 X |131 Y |132 Z |133 [ |134 |135 ] |136 ^ |137 _ |
|140 ` |141 a |142 b |143 c |144 d |145 e |146 f |147 g |
|150 h |151 i |152 j |153 k |154 l |155 m |156 n |157 o |
|160 p |161 q |162 r |163 s |164 t |165 u |166 v |167 w |
|170 x |171 y |172 z |173 { |174 | |175 } |176 ~ |177 del|
|00 nul|01 soh|02 stx|03 etx|04 eot|05 enq|06 ack|07 bel|
|08 bs |09 ht |0A nl |0B vt |0C np |0D cr |0E so |0F si |
|10 dle|11 dc1|12 dc2|13 dc3|14 dc4|15 nak|16 syn|17 etb|
|18 can|19 em |1A sub|1B esc|1C fs |1D gs |1E rs |1F us |
|20 sp |21 ! |22 " |23 # |24 $ |25 % |26 & |27 ' |
|28 ( |29 ) |2A * |2B + |2C , |2D - |2E . |2F / |
|30 0 |31 1 |32 2 |33 3 |34 4 |35 5 |36 6 |37 7 |
|38 8 |39 9 |3A : |3B ; |3C < |3D = |3E > |3F ? |
|40 @ |41 A |42 B |43 C |44 D |45 E |46 F |47 G |
|48 H |49 I |4A J |4B K |4C L |4D M |4E N |4F O |
|50 P |51 Q |52 R |53 S |54 T |55 U |56 V |57 W |
|58 X |59 Y |5A Z |5B [ |5C |5D ] |5E ^ |5F _ |
|60 ` |61 a |62 b |63 c |64 d |65 e |66 f |67 g |
|68 h |69 i |6A j |6B k |6C l |6D m |6E n |6F o |
|70 p |71 q |72 r |73 s |74 t |75 u |76 v |77 w |
|78 x |79 y |7A z |7B { |7C | |7D } |7E ~ |7F del|
ASCII(7)