I have a file with 3 columns like this I want to swap the entries of the Col1 and Col2 whenever there is in the third column. I want my output file to be like Answer Essentially, if $3==”<-“, then swap the columns and redefine $3. Then print.
Tag: multiple-columns
Creating Linux Alias to list only Directories
I’m wanting to create an alias called dir for KSH that will show only the sub-directories in a cluttered directory with many files and directories. I can output a single-column list of the directories, but I am having a problem converting the single-column list into a multi-column. I want it to automatically determine the number of columns to use based