i have a file which contains the following lines
is any way to get the file to swich so it displaysapple - pears
oranges - bananas
any help would be appreciated guyspears -apple
bananas - oranges
i have a file which contains the following lines
is any way to get the file to swich so it displaysapple - pears
oranges - bananas
any help would be appreciated guyspears -apple
bananas - oranges
Is the difference in whitespace (no space between the - and apple) significant? if not I'd probably do something like
orCode:awk '{print $3" - "$1}' file
Code:awk '{print $3,$2,$1}' file
Bookmarks