Search Results

Search: Posts Made By: c_bg1
4,776
Posted By ahamed101
... mv $file $newfile >/dev/null 2>&1 ... ...
...
mv $file $newfile >/dev/null 2>&1
...


regards,
Ahamed
4,776
Posted By ahamed101
I am not sure why it creates the merged file in...
I am not sure why it creates the merged file in the main folder.
Anyways you can try this giving the full folder path


...
grep '.*' *.txt > $HOMEDIR/$dir/_merged_temp.txt
sed -i...
4,776
Posted By ahamed101
If you are using the grep and sed command to...
If you are using the grep and sed command to merge all the file in the subfolder to one big file, then you can try this

#!/bin/ksh
HOMEDIR=/cygdrive/n/test
dirs=`ls | grep -v run`
for dir in...
4,776
Posted By ahamed101
Try this... The script is placed in the parent...
Try this...
The script is placed in the parent directory where the subfolders are present and ths script name is "run.sh"


#!/bin/ksh

HOMEDIR=/user/ahamed/test
dirs=`ls | grep -v run`
...
23,034
Posted By dennis.jacob
sed 's/.*/&,file1/' file1 >temp mv temp...
sed 's/.*/&,file1/' file1 >temp
mv temp file1
Showing results 1 to 5 of 5

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