I have a file named file1as
07/25 00:10 d327490
07/25 00:55 d378299
07/25 03:58 d378299
07/25 06:14 d642035
07/25 12:44 c997126
and now i want to reverse the first filed ie 07/25 as
25/07 00:10 d327490
25/07 00:55 d378299
25/07 03:58 d378299
25/07 06:14 d642035
25/07 12:44 c997126
---------- Post updated at 04:30 AM ---------- Previous update was at 04:23 AM ----------
Hi corona,
im using k shell
$ sh new.sh <file1> out
new.sh: while: not found
new.sh: syntax error at line 4: `do' unexpected
$ cat new.sh
#!/bin/sh
IFS="/" while read A B C
do
echo "$B/$A $C"
done