I have a long file with the following list:
/drivers/isdn/hardware/eicon/message.c
/drivers/media/video/saa7134/saa7134-dvb.c
/sound/pci/ac97/ac97_codec.c
/drivers/s390/char/tape_34xx.c
(PROBLEM)/drivers/video/sis/init301.c
/drivers/scsi/sg.c
/fs/ntfs/file.c
/drivers/net/tg3.c
/arch/cris/arch-v32/drivers/cryptocop.c
/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
/drivers/video/aty/atyfb_base.c
/block/compat_ioctl.c
....
It contains all the functions in the kernel code. Designation file//function.
I want to copy several 100 files from the kernel directory to another directory, so I want to delete each line from the function name, leaving only the file name.
This is super-easy in python, any idea how to write a 1 liner at the bash prompt that does the trick?
Thanks,
Udi
source
share