Search Results

Search: Posts Made By: anilcliff
883
Posted By agama
Assuming that these are the only things in your...
Assuming that these are the only things in your input file:


sed 's/.*://' input-file


If your input lines are more complicated the sed will be too.
11,432
Posted By Corona688
Did you outrun my edit? I briefly posted it with...
Did you outrun my edit? I briefly posted it with $8 when it was supposed to be $7, which would do exactly that.

I also modified it so you can pass in the username more easily.
1,503
Posted By CarloM
printf %02d $lasthour instead of echo.
printf %02d $lasthour instead of echo.
2,918
Posted By Shell_Life
sed 's#.*/##' Inp_File
sed 's#.*/##' Inp_File
1,766
Posted By pravin27
awk -F"\"" '{printf $2;getline;print "/"$2}'...
awk -F"\"" '{printf $2;getline;print "/"$2}' filename
2,318
Posted By itkamaraj
use dirname command dirname...
use dirname command

dirname /usr/local/apache/htdocs/file.php


---------- Post updated at 09:14 AM ---------- Previous update was at 08:51 AM ----------

try these also...

...
Showing results 1 to 6 of 6

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