Search Results

Search: Posts Made By: RavinderSingh13
11,539
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....
11,539
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...
11,539
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

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