Thanks ghosts,what i want to do here is where ever there is a whitespace in the directory name i want to squeeze.
Code:
hal9000@wsx04:~$ tar -tvf test.rar
-rw-r--r-- hal9000/hal9000 0 2009-12-11 17:57 TEST/B/lol.txt
drwxr-xr-x hal9000/hal9000 0 2009-12-11 17:57 TEST/the linux project/
-rw-r--r-- hal9000/hal9000 0 2009-12-11 17:57 TEST/the linux project/helloworld.sh
-rw-r--r-- hal9000/hal9000 0 2009-12-11 17:57 TEST/the linux project/helloworld.py
-rw-r--r-- hal9000/hal9000 0 2009-12-11 17:57 TEST/B/helloworld.txt
when i do awk -F" " '{print $6}' it prints the .txt files that is lol and helloworld,but doesnt print the .sh and .py files. Is there any way that i can print the columns that come after 5th column as one column by merging?
I tried awk '{for(i=1;i<=7;i++)$i=""}1' it prints only
Code:
project/
project/helloworld.sh
project/helloworld.py
as the output,but i wisht to print the other files as well.
Thanks.