Click to See Complete Forum and Search --> : bash scripting


hardigunawan
12-08-2000, 03:17 AM
i have a filelist containing a directory path (e.g. /home/abc)

how do i read the filelist and change any occurence of /home/abc into /home/def?

pdc
12-08-2000, 04:00 AM
Something like

filelist | sed s/\/home\/abc/\/home\/def/g

Should work,
Paul