Search Results

Search: Posts Made By: HLee1981
3,680
Posted By Scrutinizer
In bash, instead of ${string} you can use...
In bash, instead of ${string} you can use ${string// } to remove all spaces from string.

Another option is to use read again (bash/ksh93/zsh, but this time with the default IFS (Internal Field...
3,680
Posted By nezabudka
Hi, try so for i in *split*; do tail="$(head -1...
Hi, try so
for i in *split*; do tail="$(head -1 $i |cut -d "~" -f 9 )"; mv $i ${i}_$tail; done
3,680
Posted By Scrutinizer
Hi, try something like this: for file in...
Hi, try something like this:
for file in filename* # For every file in the current directory that starts with "filename"
do
if [ -r "$file" ]; then ...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 11:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy