Search Results

Search: Posts Made By: RavinderSingh13
3,965
Posted By RavinderSingh13
Hello pseudo.seppuku, That's because you...
Hello pseudo.seppuku,

That's because you haven't run it as a script and when you ran it as a command, variable named i's value will be there in memory of shell and it will take it from there....
3,965
Posted By RavinderSingh13
Hello pseudo.seppuku, Could you please try...
Hello pseudo.seppuku,

Could you please try following and let me know if this helps, not tested though.

for file in *.txt; do let "i = i + 1"; awk -vI=$i...
3,965
Posted By RavinderSingh13
Hello pseudo.seppuku, Welcome to forums....
Hello pseudo.seppuku,

Welcome to forums. Could you please try following and let me know if this helps you.

for file in *.txt
do
let "i = i + 1"
awk -vI=$i...
Showing results 1 to 3 of 3

 

Featured Tech Videos

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