YZlat
asked on
Need help reading ksh script
Can someone tell me what does this line do?
cut -d"/" -f1-4`
I understand that it grabs the string, ignored the forward slash character and cus characters 1 throught 4 from the string. Am I correct?
Also what is the difference when cut command is called with -c1-4 as opposed to -f1-4?
cut -d"/" -f1-4`
I understand that it grabs the string, ignored the forward slash character and cus characters 1 throught 4 from the string. Am I correct?
Also what is the difference when cut command is called with -c1-4 as opposed to -f1-4?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
It uses it as a field delimiter to determine what the first 4 fields are
ASKER
But what about the difference bewteen -f1-4 and -c1-4?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER