Search Results

Search: Posts Made By: Alexander4444
2,341
Posted By Corona688
> does not append, > overwrites. So, for each...
> does not append, > overwrites. So, for each file, overwrite the temp file, then overwrite the original.

If you have GNU sed, you can sed -i to edit in-place instead of cat-ing the new file atop...
2,341
Posted By elixir_sinari
perl -i.bak -pe 's/this/that/g' <list of file...
perl -i.bak -pe 's/this/that/g' <list of file names>
Remove the .bak files after verifying that the substitutions have been done properly.

Note : This will change the inode numbers of all the...
2,635
Posted By Yoda
find . -name "*.aif" -exec ls -l {} \; | awk ' {...
find . -name "*.aif" -exec ls -l {} \; | awk ' { s+=$5 } END { printf "%d bytes\n", s } '
2,635
Posted By bartus11
Try:find . -name "*.aif" -ls | awk...
Try:find . -name "*.aif" -ls | awk '{s+=$7}END{print s/(1024*1024)" Mbytes"}'
8,517
Posted By neutronscott
This will create, for example, "file.txt alias"...
This will create, for example, "file.txt alias" in current directory from /path/to/file.txt, etc

find -name 'some exp' -type f -exec bash -c 'ln -s $1 "${1##*/} alias"' _ {} \;
Showing results 1 to 5 of 5

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