Search Results

Search: Posts Made By: dsfreddie
8,381
Posted By binlib
single quote the &&.
single quote the &&.
1,236
Posted By in2nix4life
echo...
echo "/iis_ft_dev_data1/custsys/publish/goldstd/WCC_CUST_GS_NON_TRAN_CTA_DLY.dat" | sed -n 's/.*_\(.*\)\.dat/\1/p'

DLY
1,236
Posted By vgersh99
echo '...
echo ' /iis_ft_dev_data1/custsys/publish/goldstd/WCC_CUST_GS_NON_TRAN_CTA_DLY.dat' | awk -F'[_.]' '{print $(NF-1)}'
5,889
Posted By alister
Assuming that there is only one file per date,...
Assuming that there is only one file per date, that the only dates in filenames in that directory occur in files of interest, and that there aren't other files whose names may sort within the date...
5,889
Posted By Corona688
You did it again: for EMPLOYEE in...
You did it again:
for EMPLOYEE in `/iis_data/source/*.txt`

That is in backticks and should not be.

In the code I actually posted, it was in no brackets, quotes, or ticks whatsoever. It is not...
1,845
Posted By spacebar
This will do it for you: for x in `sed...
This will do it for you:
for x in `sed 's/^SUB_DATE = //;s/,/\n/g' test.txt`
do
mv /source_directory/a.$x /target_directory
done

# File test.txt has records like:
SUB_DATE =...
1,237
Posted By Scrutinizer
Try: oldid=1000 newid=2000 sed...
Try:
oldid=1000 newid=2000
sed "s/P_JOBID=${oldid}/P_JOBID=${newid}/g" A.txt > A.new
2,696
Posted By 47shailesh
well if the file doesn't exist return code of...
well if the file doesn't exist return code of grep will non 0 and so it will if file exists but your pattern doesn't exist in file. Meaning the return code of grep -iqw P_BUS_DATE...
Showing results 1 to 8 of 8

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